package com.hopu.day8_security.service.impl;

import com.hopu.day8_security.dao.UserDAO;
import com.hopu.day8_security.entity.User;
import com.hopu.day8_security.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserDAO userDAO;
    @Override
    public User findUserByUsername(String username) {
        return userDAO.selectUserByUsername(username);
    }
}
